<!DOCTYPE html>
<html>
<head>
  <title>预防针预约系统</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
  <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
  <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
  <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
  <style>
    /* Make the image fully responsive */
    .carousel-inner img {
        width: 100%;
        height: 100%;
    }
    .btn1{
        width: 100%;
        height: 5vh;
        margin: 10px 10px;
        border-top-right-radius: 50px;
        border-top-left-radius: 50px;
        background-color: darkgray;
        border-top-left-radius: 50px;
        line-height: center;
    }
    </style>
</head>
<body style="background-color: rgb(128, 230, 128);">

    <nav class="navbar navbar-expand-md bg-success navbar-dark fixed-top">
        <a class="navbar-brand" href="{:url('home/index')}">首页</a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="collapsibleNavbar">
            <ul class="navbar-nav justify-content-center">
                <!-- <li class="nav-item">
                  <a class="navbar-brand" href="#">首页</a>
                </li> -->
                <li class="nav-item">
                    <a class="navbar-brand" href="{:url('appointment/index')}">进行预约</a>
                  </li>
                  <li class="nav-item">
                    <a class="navbar-brand" href="{:url('progress/index')}">预约进度</a>
                  </li>
                  <li class="nav-item">
                    <a class="navbar-brand" href="{:url('me/index')}">个人中心</a>
                  </li>
                  <li class="nav-item">
                    <a class="navbar-brand" href="{:url('index/logout')}">注销</a>
                  </li>
            </ul>
        </div>
    </nav>
<div class="container" style="margin-top:65px;padding: 0 0;">
    
</div>

<div class="mx-auto" style="padding: 5px 10px;">
    <a href="{:url('child/addchild')}"><button type="button" class="btn btn-primary" style="width: 100%; padding: 5px 10px;">添加孩子</button></a>
</div>


<div class="container-fluid">
    <!-- 接收数据 并且循环 -->
    {volist name="res" id="vo"}
    <div class="card" style="margin-top: 5px;">
        <div class="card-body" style="padding: 0 0;">
            <div class="d-flex mb-1">
                <div class="p-1">孩子姓名:</div>
                <div class="p-1 ml-auto ">{$vo.child_name}</div>
            </div>
            <div class="d-flex mb-1">
                <div class="p-1">家长姓名:</div>
                <div class="p-1 ml-auto ">{$vo.child_patriarch_name}</div>
            </div>
            <div class="d-flex mb-1">
                <div class="p-1">出生时间:</div>
                <div class="p-1 ml-auto ">{$vo.birth_time}</div>
            </div>
            <div class="d-flex mb-1">
                <div class="p-1 ml-auto ">
                    <!-- url传一个孩子的id -->
                    <a href="{:url('child/updatechild',['child_id'=>$vo.child_id])}">
                        <button type="button" class="btn btn-outline-primary btn-sm" >修改</button>
                    </a>
                </div>
            </div>
        </div>
    </div>
    {/volist}
</div>
<div class="bg-light fixed-bottom " style="margin-bottom:0;padding: 0 0;">
    <div>
        <p class="text-center">@2020-tch</p>
    </div>
</div>
</body>
<script>
    
</script>
</html>